package com.steve.testng;

import org.testng.annotations.Test;

/**
 * @Author: STEVE
 * @Description: TestNG超时测试 - 常用于性能测试
 * @since: 2025-02-24
 */
public class TestCase3 {

    @Test(timeOut = 5000)
    public void testThisShouldPass() throws InterruptedException {
        Thread.sleep(4000);
    }

    @Test(timeOut = 1000)
    public void testThisShouldFail() {
        while (true) {

        }
    }

}
